<ul id="category" class="category">
	<?php
	if (isset($cates) && $cates)
		foreach ($cates as $cate) {
			echo '<li id="menu-item-', $cate->cat_id, '" class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-', $cate->cat_id, ' "><a href="', category_url($cate->cat_code), '" class="', $cate->cat_icon, '">', $cate->cat_name, '</a></li>';
		} //end of foreach cates 
	?>
</ul>